import Login from "@/views/main/login.vue";
import { createRouter, createWebHistory } from "vue-router";

import ChildHome from '@/views/child/ChildHome.vue'
import ChildJob from '@/views/child/ChildJob.vue'
import ChildEnterprise from '@/views/child/ChildEnterprise.vue'
import ChildAbout from '@/views/child/ChildAbout.vue'

const routes = [
  {
    path: '/main/login',
    name: 'login',
    component: Login,
    meta: {}
  },
  {
    path: '/main/childHome',
    name: 'childHome',
    component: ChildHome,
    meta: {}
  },
  {
    path: '/main/childJob',
    name: 'childJob',
    component: ChildJob,
    meta: {}
  },
  {
    path: '/main/childEnterprise',
    name: 'childEnterprise',
    component: ChildEnterprise,
    meta: {}
  },
  {
    path: '/main/childAbout',
    name: 'childAbout',
    component: ChildAbout,
    meta: {}
  },
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BAASE_URL), // vue2 mode: 'history'
  routes
})

export default router